import {createFromIconfontCN} from "@ant-design/icons";

const IconFont = createFromIconfontCN({
    scriptUrl: [
        'http://192.168.2.8:3269/summer-icon.js'
    ]
});

/**
 * 创建icon font图标
 */
export const createIcon = (iconName?: string) => {
    if (iconName === undefined || iconName === ''){
        return null;
    }
    return <IconFont type={iconName}/>
};